package com.usian.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.article.dtos.ArticleHomeDto;
import com.usian.model.article.mess.ArticleVisitStreamMess;
import com.usian.model.article.pojos.ApArticle;
import com.usian.model.common.dtos.ResponseResult;

public interface ApArticleService extends IService<ApArticle> {

    /**
     * 根据参数加载文章列表
     * @param loadType 1为加载更多  2为加载最新
     * @param dto
     * @return
     */
    ResponseResult load(Short loadType, ArticleHomeDto dto);

    /**
     * 重新计算文章分值
     * @param mess
     */
    public void updateApArticle(ArticleVisitStreamMess mess);
    /**
     * 根据参数加载文章列表  v2
     * @param loadType
     * @param dto
     * @param firstPage
     * @return
     */
    public ResponseResult load2(Short loadType, ArticleHomeDto dto,boolean firstPage);
}
